package com.main.dao;

import java.util.List;
import java.util.Map;

import org.springframework.web.multipart.commons.CommonsMultipartFile;

import com.generico.exception.AsiWebException;
import com.main.java.Compra;

public interface CompraDao {

	public List<Object[]> getAllActivesAsArray();

	public Map<String, Object> guardarCompra(Compra compra, Long UploadMaxSize,
			CommonsMultipartFile uploadFile) throws AsiWebException;

	public void eliminarCompra(Long compraId) throws AsiWebException;

	public Compra findByCompraId(Long compraId) throws AsiWebException;

	public List<Compra> getCtgCompras(Long compraId);
	
	public List<Compra> getRecords(Long id);

}